from flask import Flask

app = Flask(__name__)

app.config['debug'] = True

@app.route(rule='/',methods=['get','post'])
def index():
    return "<h2>hello word</h2>"

@app.route("/goods/<float:cid>/<uuid:gid>")
def goods(cid,gid):
    print('gid',gid,type(gid))
    print('cid',cid,type(cid))
    return f"显示cid={cid}，gid={gid}的商品信息"


if __name__ == '__main__':
    app.run(host='0.0.0.0',port=5000)